package com.wnnight.wys.entity.config;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wnnight.wys.entity.payment.PayMentMethod;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @ClassName: ChargeAccount
 * @Description: //收费账户实体类
 * @author: LZJ
 * @date: 2022/8/27-17:17
 * @version: v1.0
 */
@Getter
@Setter
@TableName("wys_charge_account")
public class ChargeAccount {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @NotNull(message = "账号不能为空")
    @TableField("account")
    private String account;         //收款账号名

    @TableField("update_time")
    private String updateTime;      //修改时间

    @NotNull(message = "状态不能为空")
    @TableField("status")
    private String status;          //状态

    @Valid
    private PayMentMethod payMentMethod;    //支付方式
}
